package fhq.hcmute.edu.vn.network;

import java.io.Serializable;

public class NetworkCard implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4722455766607592885L;
	private String name;
	private String displayName;
	private String ipAddress;

	public NetworkCard(final String name, final String displayName,
			final String ipAddress) {
		super();
		this.name = name;
		this.displayName = displayName;
		this.ipAddress = ipAddress;
	}

	public final String getName() {
		return name;
	}

	public final void setName(final String name) {
		this.name = name;
	}

	public final String getDisplayName() {
		return displayName;
	}

	public final void setDisplayName(final String displayName) {
		this.displayName = displayName;
	}

	public final String getIpAddress() {
		ipAddress = ipAddress.substring(1);
		return ipAddress;
	}

	public final void setIpAddress(final String ipAddress) {
		this.ipAddress = ipAddress;
	}

}
